from django.conf import settings
from django.core.files.storage import Storage
# 1.导包
class FastDFSStorage(Storage):
    def __init__(self):
        self.base_url = settings.FDFS_BASE_URL
# 2.继承类
    def _open(self, name, mode='rb'):
        pass
    def _save(self, name, content, max_length=None):
        pass
# 3.配置
    def url(self, name):
        return self.base_url + name
# 自定义

# dev配置FastDFSStorage